package org.truenewx.tnxjeex.unit.repo.jpa.converter;

import org.truenewx.tnxjeex.unit.model.MeasureUnit;
import org.truenewx.tnxjeex.unit.support.MeasureUnits;

public class MeasureUnitAttributeConverter extends AbstractMeasureUnitAttributeConverter<MeasureUnit<?>> {

    @Override
    public MeasureUnit<?> convertToEntityAttribute(String dbData) {
        return MeasureUnits.getInstance().fromValue(dbData);
    }

}
